module.exports = class {
    constructor({ curl }) {
        this.curl = curl
    }
    //企业主动发送信息给员工
    //https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.HOMBGi&treeId=385&articleId=28915&docType=2
    //消息格式
    //https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.i8EuPf&treeId=385&articleId=104972&docType=1
    async sendMessage(param) {
        let ret = await this.curl('dingtalk.corp.message.corpconversation.asyncsend', param)
        return ret
    }
}